package com.gp.business.controller;

import com.gp.business.entity.Adv;
import com.gp.business.service.IAdvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/adv")
public class AdvController {
    @Autowired
    IAdvService advService;

    /**
     * 详细信息
     */
    @RequestMapping(value = "/getAdv", method = RequestMethod.GET)
    @ResponseBody
    public Adv getAdvDetail() {
        Adv adv = advService.getAdvById("3D58B8A67DEC49128060936C08DB7B11");
        System.out.println(adv);
        return adv;
    }
}
